﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QLNH.MyUserControls
{
    public partial class MainButtonUC : UserControl
    {
        private string _buttonName;

        public string ButtonName
        {
            get { return _buttonName; }
            set { _buttonName = value; this.lb_buttonName.Text = _buttonName; }
        }

        private string _buttonDescription;

        public string ButtonDescription
        {
            get { return _buttonDescription; }
            set { _buttonDescription = value; this.lb_buttonDescripton.Text = _buttonDescription; this.tt_buttonTooltip.SetToolTip(this, _buttonDescription); }
        }

        private Image _buttonImage;

        public Image ButtonImage
        {
            get { return _buttonImage; }
            set { _buttonImage = value; this.pb_buttonImage.Image = _buttonImage; }
        }

        public MainButtonUC()
        {
            InitializeComponent();
        }

        private void pb_buttonImage_Click(object sender, EventArgs e)
        {
            base.OnClick(e);
        }

        private void lb_buttonName_Click(object sender, EventArgs e)
        {
            base.OnClick(e);
        }

        private void lb_buttonDescripton_Click(object sender, EventArgs e)
        {
            base.OnClick(e);
        }

        private void MainButtonUC_MouseEnter(object sender, EventArgs e)
        {
            this.BackColor = Color.DarkSlateGray;
        }

        private void MainButtonUC_MouseLeave(object sender, EventArgs e)
        {
            this.BackColor = Color.SteelBlue;
        }

        private void pb_buttonImage_MouseEnter(object sender, EventArgs e)
        {
            base.OnMouseEnter(e);
        }

        private void pb_buttonImage_MouseLeave(object sender, EventArgs e)
        {
            base.OnMouseLeave(e);
        }

        private void lb_buttonName_MouseEnter(object sender, EventArgs e)
        {
            base.OnMouseEnter(e);
        }

        private void lb_buttonName_MouseLeave(object sender, EventArgs e)
        {
            base.OnMouseLeave(e);
        }

        private void lb_buttonDescripton_MouseEnter(object sender, EventArgs e)
        {
            base.OnMouseEnter(e);
        }

        private void lb_buttonDescripton_MouseLeave(object sender, EventArgs e)
        {
            base.OnMouseLeave(e);
        }
    }
}
